
class ResultModel {


    static create(error,statue,data){
        return new ResultModel(error,statue,data);
    }

    static createError(error){
        return new ResultModel(error);
    }

    static createResult(statue,data){
        return new ResultModel(undefined,statue,data);
    }

    constructor(error,statue,data){
        this.error = error;
        this.statue = statue;
        this.data = data;
    }

}

module.exports = ResultModel;